package com.srt.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author rd06
 * @since 2021-03-29
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("catalog")
public class Catalog extends Model<Catalog> {

    private static final long serialVersionUID=1L;

    @TableField(value = "id", fill = FieldFill.INSERT)
    private Long id;

    @TableField("name")
    private String name;

    @TableField("file_name")
    private String fileName;

    @TableField("parent_id")
    private Long parentId;

    @TableField("type")
    private Integer type;

    /**
     * 是否删除 0 否 1 是
     */
    @TableField("is_delete")
    private Integer isDelete;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(value = "creator_id", fill = FieldFill.INSERT)
    private Long creatorId;

    @TableField(value = "updater_id", fill = FieldFill.INSERT_UPDATE)
    private Long updaterId;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
